trial calculation